import request from '@/utils/request'

// 查询车道信息列表
export function listParkingLane(query) {
  return request({
    url: '/parking/parkingLane/list',
    method: 'get',
    params: query
  })
}

// 查询车道信息详细
export function getParkingLane(id) {
  return request({
    url: '/parking/parkingLane/' + id,
    method: 'get'
  })
}

// 新增车道信息
export function addParkingLane(data) {
  return request({
    url: '/parking/parkingLane',
    method: 'post',
    data: data
  })
}

// 修改车道信息
export function updateParkingLane(data) {
  return request({
    url: '/parking/parkingLane',
    method: 'put',
    data: data
  })
}

// 删除车道信息
export function delParkingLane(id) {
  return request({
    url: '/parking/parkingLane/' + id,
    method: 'delete'
  })
}

// 出入口二维码
export function getInOutCode(qrCodeId, parkId) {
  return request({
    responseType: 'blob',
    url: '/parking/parkingLane/getInOutCode?qrCodeId='+ qrCodeId +"&parkId="+parkId,
    method: 'get'
  })
}
